package cn.gson.boot.model.mapper;

import cn.gson.boot.model.pojos.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DingDanXiangQingMapper {
    //查看订单id查看订单详情
    public List<Dingdanxiangqing> ckDingDanXiangQing(@Param("ddid") Integer ddid);

    //根据合同id查看订单详情<三个表：合同，订单，订单详情>(mybatis查询)
    List<Dingdanxiangqing> selectDDDingDanXaingQing(Integer htId);

    //=====维修工单
    //根据选择的订单查到此订单详情表里面的产品
    public List<Productt> ckDingDanChanPin(Integer ddId);

    //根据产品查询订单详情的信息
    public Dingdanxiangqing ckDingDanChanXiangQinByChanPin(@Param("producttId") Integer producttId,@Param("ddId")Integer ddId);
}
